cmake_minimum_required(VERSION 3.25)

set (CMAKE_CXX_STANDARD 20)

project(voxel-engine)

include_directories(deps/include)

add_subdirectory(src/camera)
add_subdirectory(src/engine)
add_subdirectory(src/game)
add_subdirectory(src/graphics)
add_subdirectory(src/loaders)
add_subdirectory(src/renderers)
add_subdirectory(src/voxel)
add_subdirectory(src/window)

add_executable(${PROJECT_NAME}
    src/main.cpp
)

target_link_libraries(${PROJECT_NAME} PUBLIC
    voxel-engine-camera
    voxel-engine-engine
    voxel-engine-game
    voxel-engine-graphics
    voxel-engine-loaders
    voxel-engine-renderers
    voxel-engine-voxel
    voxel-engine-window
)
